using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace PlatformShoot{
    public class CameraCtrl : MonoBehaviour
{
    private Transform mTarget;
    void Start()
    {
        mTarget = GameObject.FindGameObjectWithTag("Player").transform;
    }

    // Update is called once per frame
    void LateUpdate()
    {
        transform.localPosition = new Vector3(mTarget.position.x, mTarget.position.y, -10);

    }
}
}

